<?php
	namespace org\kahikai\database\fs;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Cp1252"/>
<meta name="author" content="Ch4mp"/>
<link rel="shortcut icon" href="../../../../../favicon.ico" type="image/x-icon"/> 
<link rel="icon" href="../../../../../favicon.ico" type="image/x-icon"/>
<title>FsPictureDao test</title>
</head>
<body>
<?php
	require_once '../../../../../org/kahikai/database/fs/FsPictureDao.php';
	
	use org\kahikai\database\fs\FsPictureDao;
	
	$pictureDao = new FsPictureDao();
	
	echo "<h1>getBySpeciesId(1)</h1>\n";
	echo "<p>";
	foreach($pictureDao->getBySpeciesId(1) as $stepId => $picture) {
		echo "Step#$stepId: $picture->id: <img src=\"http://localhost/kahikai/$picture->url\" alt=\"$picture->url\"/><br/>\n";
	}
	echo "</p>\n";
	
	echo "<h1>getByDevelopmentStepId(8)</h1>\n";
	echo "<p>";
	foreach($pictureDao->getByDevelopmentStepId(8) as $speciesId => $picture) {
		echo "Species#$speciesId: $picture->id: <img src=\"http://localhost/kahikai/$picture->url\" alt=\"$picture->url\"/><br/>\n";
	}
	echo "</p>\n";
?>
</body>
</html>